<script type="text/javascript">
 $(function(){
	 $.post("tellerManage/getpaperAndBranch",function(json){
		 var contenta="<option value='' >请选择</option>";
		 var contentb="<option value='' >请选择</option>";
		 $(json).each(function(n,item){
			 for(i=0;i<item.certificates.length;i++){
				contenta+="<option value="+item.certificates[i].certificateType+">"
				+item.certificates[i].certificatesName+"</option>"
			};
				for(i=0;i<item.branchs.length;i++){
				contentb+="<option value="+item.branchs[i].orgNo+">"
				+item.branchs[i].orgName+"</option>"
			};
			$("#tellerPaperType").html(contenta);
			$("#branchNoByTeller").html(contentb);
		 });
		 $.post("tellerManage/getUpdateTellerInfo",getUpdateTellerInfo,"json")
	 },"json")
	 
	
}); 
function checkPassword(){
	var pwd1=$("input[name='loginPassword']").val();
	var pwd2=$("input[name='passWord']").val();
	if($("input[name='passWord']").hasClass("requiredSame")){
		if(pwd1!=pwd2){
			 alertMsg.warn("2次密码不一样！")
			 return false;
		}
	}
	return true;
}
$("#initPassword").click(function(){
	$("input[name='loginPassword']").removeAttr("hidden").val("123456")
})
</script>
<div class="pageContent">
	<form method="post" action="tellerManage/updateTeller" class="pageForm" onsubmit="return validateCallback(this,dialogAjaxDone);">
		<div class="pageFormContent" layoutH="58" hight="600px">
			<div id=userNo>
			<p >
				<label>柜员编号：</label>
				<input name="userNo"  type="text" size="30" class=" " maxlength="11"readonly="readonly"/>
				
			</p>
			</div>
			<p>
				<label>柜员名称：</label>
				<input  name="userName"  type="text" size="30" maxlength="30" class="validRequired" />
			</p>
			<p>
				<label>登陆名：</label>
				<input id="loginName" name="loginName"  type="text" size="30" maxlength="30" class="validRequired" />
			</p>
			<p>
				<label>密码：</label>
				<input  id="loginPassword" name="loginPassword" maxlength="30" type="text" size="20" class="validRequired validPwdLevOne" />
				&nbsp;&nbsp;<input id="initPassword"type="button" value="初始化">
				
			</p>
			<p>
				<label>确认密码：</label>
				<input id="passWord"  name="passWord" maxlength="30" type="text" size="30" class="validRequired validPwdLevOne requiredSame" />
			</p>
			<p>
				<label>证件类型：</label>
				<!-- <input  name="paperType"  type="text" hidden="hidden" > -->
				<select flag="paperCode" id="tellerPaperType" name="paperType" >
				
				</select>
			</P>
			<p>
				<label>证件号码：</label>
				<input  name="paperNo"  type="text" size="30" class="validRequired validIdentity" />
			</p>
			<p>
				<label>柜员性别：</label>
				<input name="genders" type="hidden">
				<input  name="gender" value="01" type="radio"  class="validRadioIsChecked"/>&nbsp;&nbsp;&nbsp;男
				<input  name="gender" value="02" type="radio"  />&nbsp;&nbsp;&nbsp;女
			</p>
			<p>
				<label>联系电话(手机)：</label>
				<input  name="telephone"  type="text" size="30" class="validRequired validMobile"/>
			</p>
			<p>
				<label>E-MAIL：</label>
				<input  name="email"  type="text" size="30" class="validEmail" />
			</p>
			<p>
				<label>职务：</label>
				<input name="headship"  type="text" size="30" maxlength="20" class="" />
			</p>
			<p>
				<label>工作职责：</label>
				<input name="responseDesc"  type="text" size="30" maxlength="30" class="" />
			</p>
			<p>
				<label>所属网点：</label>
				<select id="branchNoByTeller" name="branchNo" >
				
				</select>
			
			</p>
			<p>
				<label>上任日期：</label>
				<input  name="takepostDate"  type="text" size="30" class="date" />
			</p>
			<p>
				<label>是否有凭证尾箱：</label>
				<input  name="hasCertTrunk"  type="text" size="30" maxlength="1" class="" />
			</p>
			<p>
				<label>是否有现金尾箱：</label>
				<input  name="hasCashBox"  type="text" size="30" maxlength="1" class="" />
			</p>
			<p>
				<label>证书名称：</label>
				<input  name="certName"  type="text" size="30"  maxlength="30" class="" />
			</p>
			<p>
				<label>签到状态：</label>
				<input  name="signStatus"  type="text" size="30" maxlength="1" class="" />
			</p>
			<p>
				<label>轧帐状态 ：</label>
				<input  name="checkStatus"  type="text" size="30" maxlength="1" class="" />
			</p>
			<p>
				<label>登陆IP限制：</label>
				<input  name="loginRestrict" maxlength="30" type="text" size="30" class="validIP" />
			</p>
			<p>
				<label>备注：</label>
				<input  name="remark"  type="text" size="30" class="" maxlength="30" />
			</p>
		
		</div>
		<div class="formBar">
			<ul> 
				<li>
				<div class="buttonActive"><div class="buttonContent"><button id="submit" type="submit" class="valid" onclick="return checkPassword();">提交</button></div></div>
				</li>
			</ul>
		</div>
	</form>
</div>